


<!DOCTYPE html>
<html>
    <head><meta charset="utf-8">
        <meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name=”renderer” content=”webkit” />
        <title>天娱彩票 - 最重视信誉的彩票平台</title>
        <meta name="keywords" content="天娱彩票" />
        <meta name="description" content="天娱彩票致力于打造彩票第一品牌，与您共同打造高品质的游戏平台，彩票游戏，我们更专业！" />
        <link rel="icon" type="image/x-icon" href="favicon.ico">
        <link rel="stylesheet" href="/static/newdsn/css/cash/main.css">
        <link rel="stylesheet" href="/static/newdsn/css/cash/style.css">
        <link rel="stylesheet" href="/static/newdsn/css/cash/index.css">
        <link rel="stylesheet" href="/static/newdsn/css/cash/login.css">
        <script src="/js1/jquery.js " type="text/javascript"></script>
        <script src="/js1/guest.js " type="text/javascript"></script>
    </head>
    <body id="bodyid" marginwidth="0" marginheight="0">
        <div class="big-box">
            <!--头部开始-->
            <div class="header-box">
                <div class="header-ts">
                </div>
                <!--头部结束-->
                <div class="top" style="height:80px;background-color: #e4bce2;;">
                    <div class="g_w1">
                        <div class="time_box" style="height: 80px;line-height: 80px;">
                            <img src="/images/logo.png" >
                        </div>
                        <div class="oper_box">
                            <div class="login" style="margin-top: 38px;">
                                <button onclick="window.location.href = '/user/login'"  class="btn btn-red">登录</button>
                                <button  onclick="javaScript:alert('游客盘口只供试玩，与正式会员盘口无关!');guestLogin();" class="btn btn-blue">试玩登录</button>
                                <a target="_blank" href="http://api.pop800.com/chat/400629">
                                    <div class="btn btn-yellow">
                                        <div style="margin-top:5px; ">
                                            <img src="/images/mic.png">
                                        </div>
                                        <div style="margin-left:4px; margin-top: 0px;" title="点击即可联系在线客服">在线客服</div>
                                    </div>
                                </a>
                            </div>				
                        </div>
                        <div class="g_glear"></div>
                    </div>
                    <div class="g_glear"></div>
                </div>
            </div>


            <div class="bannerpromo">
                <div class="g_w1">
                    <img src="/images/banner_login.jpg" alt="" width="1000" height="221">
                    <div class="headertxt">注册</div>
                    <div class="headersubtxt">欢迎来到天娱彩票，我们更专注彩票，博彩乐趣都在这里。</div>
                </div>
            </div>

            <div class="loginpanel" style="min-height: 530px;">
                <div class="g_w1 clearfix body_bg">
                    <div class="stepitm stepactive" style="z-index: 3;">
                        <div class="stepno">01</div>
                        <div class="stepnotxt">设置账户及登录密码</div>
                        <div class="hlfcircle hlfcircleactive"></div>
                    </div>
                    <div class="stepitm" style="z-index: 2;">
                        <div class="stepno ml90">02</div>
                        <div class="stepnotxt">注册成功</div>
                        <div class="hlfcircle"></div>
                    </div>
                    <div class="stepitm" style="z-index: 1;">
                        <div class="stepno ml90">03</div>
                        <div class="stepnotxt">登录网站</div>
                    </div>

                </div>
                <form class="layui-form" action="">
                    <input type="hidden" name="parentId" value="<?php echo empty($_GET['uid'])? intval($_GET['uid']):0;?>">
                    <input type="hidden" name="lid" value="<?php echo empty($_GET['lid'])? intval($_GET['lid']):0;?>">
                    <div class="g_w1 clearfix body_bg">
                        <div class="row mt35 clearfix">
                            <div class="col1">登录账号:</div>
                            <div class="col2">
                                <input id='username' type="tel" name="username" placeholder="请填写登录账号" lay-verify="required|username" autocomplete="off" class="textbox1">
                            </div>
                            <div id="nameTips" class="col3">＊账户名由6-15个字符组成</div>
                        </div>

                        <div class="row clearfix">
                            <div class="col1">登录密码:</div>
                            <div class="col2">
                                <input id="password" name="password" lay-verify="pass" placeholder="请输入密码" autocomplete="off" class="textbox1" type="password" size="40" maxlength="20">
                            </div>
                            <div class="col3">＊6-20个字母、数字或组合组成，区分大小写</div>
                        </div>
                        <div class="row  clearfix">
                            <div class="col1">确认密码:</div>
                            <div class="col2">
                                <input name="comfirm_password" lay-verify="comfirm_pass" placeholder="请确认密码" autocomplete="off" class="textbox1" type="password" size="40" maxlength="20">
                            </div>
                            <div class="col3">＊请再次输入密码以确保输入无误</div>
                        </div>

                        <div class="row  clearfix">
                            <div class="col1">真实姓名:</div>
                            <div class="col2">
                                <input type="text" name="realname" placeholder="请输入真实姓名" lay-verify="realname" autocomplete="off" class="textbox1" maxlength="10" size="40">
                            </div>
                            <div class="col3">＊真实姓名必须与您用于提款银行账户名称一致</div>
                        </div>

                        <div class="row  clearfix">
                            <div class="col1">手机号码:</div>
                            <div class="col2">
                                <input id="m_mobile" type="text" name="mobile" placeholder="请输入手机号码" lay-verify="required|phone" autocomplete="off" class="textbox1"  size="40">
                            </div>
                            <div class="col3">＊真实手机号码，否则无法修改资料</div>
                        </div>
                        <div class="row  clearfix">
                            <div class="col1">验证码:</div>
                            <div class="col2">
                                <input name="vcode" id="LAY-user-login-vercode" lay-verify="required|verify" placeholder="图形验证码" class="textbox1" type="text" style="width: 160px;">
                                <img src="/user/vcode/<?= $this->time ?>" onclick="this.src = '/user/vcode/' + (new Date()).getTime()"
                                     style="position:absolute;left:338px;width:100px;height:35px;" id="LAY-user-get-vercode">
                            </div>
                            <div class="col3">＊请输入验证码</div>
                        </div>
                        <div class="row" style="margin-bottom: 50px;">
                            <div class="col1"></div>
                            <div class="col2">
                                <button style="background: #999900" class="submitbtn" lay-submit="" lay-filter="demo1">创建帐号</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            ﻿<div class="footerindex2">Copyright © 天娱彩票  All Rights Reserved.</div>
            <div class="remodal-overlay remodal-is-closed" style="display: none;"></div><div class="remodal-wrapper remodal-is-closed" style="display: none;"><div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="modal" role="dialog" aria-describedby="modal1Desc" data-remodal-options="hashTracking: false" style="width: 250px;" tabindex="-1">
                    <div>
                        <p id="modal1Desc" style="color: rgb(0, 0, 0);"></p>
                    </div>
                </div>
            </div>
<script src="/js/layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form;
        //自定义验证规则
        form.verify({
            username: function (value) {
                if (value.length < 6) {
                    return '用户名至少得6个字符';
                }
            },
            pass: [/(.+){6,12}$/, '密码必须6到12位'],
            comfirm_pass: function (value) {
                if (!new RegExp($("#password").val()).test(value)) {
                    return "两次输入密码不一致，请重新输入！";
                }
            },
            realname: function (value) {
                if (value.length < 2) {
                    return '真实姓名至少得2个字符';
                }
            },
            verify: function (value) {
                if (value.length <= 0) {
                    return '请输入验证码';
                }
            },
        });
        //监听提交
        form.on('submit(demo1)', function (data) {
            var index = layer.load(1, {
                shade: [0.5, '#ccc'] //0.1透明度的白色背景
            });
            $.post('/user/registered', $('form').serialize(), function (res) {
                $('#LAY-user-get-vercode').attr('src', '/user/vcode/?time=' + Math.random());
                layer.close(index);
                if (res.status == 1) {
                    layer.msg('注册成功，正在跳转...', {
                        icon: 1,
                        time: 2000 //2秒关闭（如果不配置，默认是3秒）
                    }, function () {
                        window.location.href = '/user/login';
                    });
                } else {
                    layer.msg(res.msg);
                    return;
                }
            }, 'json');
            return false;
        });
    });
</script>
 <div style="display: none;"><script src="https://s19.cnzz.com/z_stat.php?id=1274861283&web_id=1274861283" language="JavaScript"></script></div>
 <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?3314b64a10292a429befd98d829eb367";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
        </script>
    </body>
</html>